package com.zw.knowlege.service;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.zw.common.response.ResponseResult;
import com.zw.knowlege.pojo.CollectRecordPojo;
import com.zw.knowlege.pojo.ExperiencePojo;

import java.util.Map;

/**
 * @Author xtyu
 * @Date 2022/5/11
 * @description 收藏记录的服务
 */
public interface CollectRecordService {
    /**
     * 收藏
     * @param collectRecordPojo
     * @return
     */
    ResponseResult collectOneRecord(CollectRecordPojo collectRecordPojo);
    /**
     * 查询我的收藏
     * @param paramJson
     * @return
     */
    PageInfo<ExperiencePojo> queryMyCollectExperience(JSONObject paramJson);

    /**
     * 取消收藏
     * @param collectRecordPojo
     * @return
     */
    ResponseResult cancelCollectRecord(CollectRecordPojo collectRecordPojo);

    /**
     * 收藏操作
     * @param paramJson
     * @return
     */
    ResponseResult doCollectProcess(JSONObject paramJson);
}
